Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
' Load Map Business Online application with user account credentials. The method will also load the last-used map.
_applicationWindow = ApplicationWindow.LoadApplicationWindow(Me, FormWindowState.Maximized, Nothing, Nothing, New Credentials(_email, _password))
' Finally create a new map. Discard changes made in current map.
_applicationWindow.Application.NewMap(MapRegion.USA, options:=NewMapOptions.DiscardCurrentMapModifications)
' Get the map.
Dim map As IMap = _applicationWindow.Application.Map
End Sub
private void button1_Click(object sender, EventArgs e)
{
// Load Map Business Online application with user account credentials. The method will also load the last-used map.
_applicationWindow = ApplicationWindow.LoadApplicationWindow(this, FormWindowState.Maximized, null, null, new Credentials("<Your MBO account e-mail>", "<Your MBO account password>"));
// Finally create a new map. Discard changes made in current map.
_applicationWindow.Application.NewMap(MapRegion.USA, options: NewMapOptions.DiscardCurrentMapModifications);
// Get the map.
var map = _applicationWindow.Application.Map;
}